if(!dojo._hasResource["holly.TitlePane"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["holly.TitlePane"] = true;
dojo.provide("holly.TitlePane");

dojo.require("dijit.TitlePane");

dojo.declare(
	"holly.TitlePane",
	[dijit.TitlePane],
{
	// summary
	//		this pane is extend dijit.TitlePane ; It has some tools in the top-right zone;
	//		the tools is HTML codes which is writed by developer.
	// author
	//		shennan 2007-9-11

	// some <a> or <button> and so on . this is pure HTML
	tools: "",
	// click tools ,so cancle the toggle
	_isCancled: false,
	
	templateString:null,
	templatePath: dojo.moduleUrl("holly","templates/TitlePane.html"),
	postCreate: function(){
		this.toolsNode.innerHTML=this.tools;
		holly.TitlePane.superclass.postCreate.apply(this, arguments);	
	},
	
	toggle: function(){
		if(this._isCancled){
			this._isCancled=false;
		}else{
			holly.TitlePane.superclass.toggle.apply(this,arguments);
		}
	},
		
	cancleClick: function(){
	this._isCancled=true;
	}
	
});

}